/*
 * Fee.java
 *
 * Created on March 28, 2007, 9:49 AM
 *
 */

package edu.byu.isys413.samlam;

/**
 * The RevenueSource object that represents the backup plan
 * @author Nick
 */
public abstract class Fee extends RevenueSource {
    /**amount of the fee*/
    private double amount;
    /**shows whether or not the fee was waived*/
    private boolean waived;
    /*the id of the rentalReturn associated with the Fee*/
    private String rentalReturn;
    
    /** Creates a new instance of Fee */
    public Fee(String id) {
        super(id);
    }
    public String getRentalReturn() {
        return rentalReturn;
    }
    
    public void setRentalReturn(String rentalReturn) {
        this.rentalReturn = rentalReturn;
        this.dirty = true;
    }
    
    /**gets the description
     * @return description of the backup plan
     */
    public String getDescription() {
        return description;
    }
    
    /** sets the description
     *@param description the description of the backup plan
     */
    public void setDescription(String description){
        this.description = description;
        this.dirty = true;
    }
    
// get the amount
    public double getAmount() {
        return amount;
    }
    
// set the amount
    public void setAmount(double amount) {
        this.amount = amount;
        this.dirty = true;
    }
    
//see if it's waived
    public boolean isWaived() {
        return waived;
    }
    
//set the waived variable
    public void setWaived(boolean waived) {
        this.waived = waived;
        this.dirty = true;
    }
}
